﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;

namespace EentitfFrameworkMvc.Models
{
    [Table("tb_stu")]
    [Index(nameof(StuEmail), Name = "UQ__tb_stu__103452DF51D0A10A", IsUnique = true)]
    [Index(nameof(StuIdentity), Name = "UQ__tb_stu__18573304A4EA0F16", IsUnique = true)]
    public partial class TbStu
    {
        [Key]
        [Column("stu_id")]
        public long StuId { get; set; }
        [Required]
        [Column("stu_name")]
        [StringLength(12)]
        [Unicode(false)]
        public string StuName { get; set; }
        [Required]
        [Column("stu_spwd")]
        [StringLength(20)]
        [Unicode(false)]
        public string StuSpwd { get; set; }
        [Column("stu_sex")]
        public int StuSex { get; set; }
        [Column("stu_age")]
        public int StuAge { get; set; }
        [Required]
        [Column("stu_identity")]
        [StringLength(18)]
        [Unicode(false)]
        public string StuIdentity { get; set; }
        [Required]
        [Column("stu_home")]
        [StringLength(50)]
        [Unicode(false)]
        public string StuHome { get; set; }
        [Column("stu_email")]
        [StringLength(100)]
        [Unicode(false)]
        public string StuEmail { get; set; }
        [Column("stu_status")]
        public int? StuStatus { get; set; }
    }
}
